<extend name="Base/common"/>

<block name="header">
    <header class="subhead" id="overview">
        <div class="container">
            {:hook('banner')}
			<div class="row">
                <include file="Public/bread" />
			</div>

        </div>
    </header>
</block>

<block name="body">
	<div class="container">
	<div class="row">
	    <div class="col-xs-12 col-sm-8 category-list-box">
		     <section id="contents">
	            <volist name="list" id="data">
                    <neq name="i" value="1">
                        <hr/>
                    </neq>
	                <div class="row article-list">
	                	<div class="col-sm-2 category-list-pic onechat-padding-10">
                            <if condition="$data['index_pic'] eq 0">
                                <img src="__PUBLIC__/Home/images/no_pic_icon.gif"  alt="{$data.title}" />
                                <else />
                                <img src="__ROOT__{:get_cover($data['index_pic'],'path')}"  alt="{$data.title}" />
                            </if>

	                	</div>
	                	<div class="col-sm-10 category-list-article">
	                    	<h3><a href="{:U('Article/detail?id='.$data['id'])}">{$data.title}</a></h3>
	                    	<p>{$data.description}</p>
	                    	<p class="small onechat-padding-5 bg-info">
			                   <span>
			                        <span class="glyphicon glyphicon-user"></span> {$data.uid|get_nickname} |
			                        <span class="glyphicon glyphicon-calendar"></span> {$data.create_time|date='Y-m-d H:i',###} | 
									<span class="glyphicon glyphicon-paperclip"></span>
			                        <a href="{:U('Article/lists?category='.get_category_name($data['category_id']))}">{$data.category_id|get_category_title} | </a> 
			                        <span class="glyphicon glyphicon-eye-open"> {$data.view}</span>
			                    </span>
			                    <span class="label label-default pull-right"><a href="{:U('Article/detail?id='.$data['id'])}">查看全文</a></span>
			                </p>
	                	</div>
	                </div>

	            </volist>
	        <div class="row">
		        <div class="onethink pagination pagination-right pagination-large">
                    <div class="page-bar">
	                <article:page cate="$category['id']" listrow="$category['list_row']" />
                    </div>
	            </div>
           </div>
	         </section>
	    </div>
	    
	    <div class="hidden-xs col-sm-4">
			<include file="Public/sidebar"/>
	    </div>
	</div>


    </div>
        </div>
</block>